<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<style type="text/css">

	html{_overflow-y:scroll}

</style>
<script language="JavaScript" src="<?php echo JS_PATH; ?>jquery.imgpreview.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		var obj=$("#imgPreview td.img[rel]");
		if(obj.length>0) {
			$('#imgPreview td.img[rel]').imgPreview({
				srcAttr: 'rel',
			    imgCSS: { width: 200 }
			});
		}
	});	
</script>

<div class="pad_10">
<div class="table-list">
<h3>清单：<?php echo $order['title']; ?> ( <?php echo $order['oid'];?> )</h3>
<form action="" method="get">
<input type="hidden" name="m" value="order" />
<input type="hidden" name="c" value="order" />
<input type="hidden" name="a" id="action" value="delete" />
<input type="hidden" name="oid" id="action" value="<?php echo $_GET['oid']; ?>" />
    <table width="100%" cellspacing="0" id="imgPreview">
        <thead>
		<tr>
		<th width="50"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
		<th>清单号</th>
		<th>会员名</th>
		<th>产品名称</th>
		<th>备注</th>
		<th>供应商/设计师</th>
		<th>创建时间</th>
		<th>最后更新时间</th>
		<th>相关操作</th>
		</tr>
        </thead>
        <tbody>
<?php 
if(is_array($data))
	foreach($data as $v){
?>
<tr>
<td width="50" align="center"><input type="checkbox" value="<?php echo $v['id']?>" name="id[]"></td>
<td align="center"><?php echo $v['oid']?></td>
<td align="center"><?php echo $v['username']?></td>
<td align="center" class="img" rel="<?php echo WEB_PATH.$v['thumb']?>"><?php echo $v['producttitle']?></td>
<td align="center"><?php echo $v['note']?></td>
<td align="center"><?php echo $v['suppliername']?></td>
<td align="center"><?php echo date('Y-m-d H:i:s', $v['inputtime'])?></td>
<td align="center"><?php echo date('Y-m-d H:i:s', $v['updatetime'])?></td>
<td align="center"><a href="?m=order&c=order&a=detail_delete&oid=<?php echo $v['oid']?>&id=<?php echo $v['id']?>" onclick="return confirm('<?php echo htmlspecialchars(new_addslashes(L('confirm', array('message'=>$v['producttitle']))))?>')">删除</a></td>
</tr>
<?php }  ?>
</tbody>
</table>
<div class="btn">
<label for="check_box"><?php echo L('select_all')?>/<?php echo L('cancel')?></label> <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>" onclick="return confirm('您确认删除么，该操作无法恢复！')"  /> 
</div>
</from>
</div>
</div>
<div id="pages"><?php echo $pages?></div>
</body>
</html>